#include <iostream>
using namespace std;
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
int main()
{
	int fd = open("log.txt",O_CREAT|O_WRONLY|O_TRUNC,0666);
	int fd1 = open("log1.txt",O_CREAT|O_WRONLY|O_TRUNC,0666);
	int fd2 = open("log2.txt",O_CREAT|O_WRONLY|O_TRUNC,0666);
	int fd3 = open("log3.txt",O_CREAT|O_WRONLY|O_TRUNC,0666);
	cout<<fd<<endl;
	cout<<fd1<<endl;
	cout<<fd2<<endl;
	cout<<fd3<<endl;

	return 0;
}
